package com.atguigu.statistics.service.impl;

import com.atguigu.statistics.entity.StatisticsDaily;
import com.atguigu.statistics.mapper.StatisticsDailyMapper;
import com.atguigu.statistics.service.StatisticsDailyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * <p>
 * 网站统计日数据 服务实现类
 * </p>
 *
 * @author admin
 * @since 2020-07-18
 */
@Service
public class StatisticsDailyServiceImpl extends ServiceImpl<StatisticsDailyMapper, StatisticsDaily> implements StatisticsDailyService {

    @Override
    public void getStatistics(String date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        try {
            Date dat = sdf.parse(date);
            
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
